package com.liuhao.ssm.service.impl;

import com.liuhao.ssm.dao.SysLogMapper;
import com.liuhao.ssm.domain.SysLog;
import com.liuhao.ssm.service.intf.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by liuHao on 2017/5/25.
 */
@Service
public class SysLogServiceImpl implements SysLogService {
    @Autowired
    private SysLogMapper sysLogMapper;

    @Override
    public int deleteSystemLog(String id) {

        return sysLogMapper.deleteByPrimaryKey(id);
    }

    @Override

    public int insert(SysLog record) {

        return sysLogMapper.insert(record);
    }

    @Override
    public SysLog selectSystemLog(String id) {

        return sysLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<SysLog> getSysLogList(Map<String, Object> map) {
        return sysLogMapper.getSysLogList(map);
    }

    @Override
    public int getSysLogListCount() {
        return sysLogMapper.getSysLogListCount();
    }
}
